#ifndef __DEFINE_CONFIG_H
#define __DEFINE_CONFIG_H

#define FB_DEV    "/dev/fb0"            //LCD 设备节点 
#define PCM_CAPTURE_DEVICE "hw:0,0"     //PCM 设备节点

#define DEEPSEEK_API_KEY "sk-722e936356ce451c90a3a0446cc22663"
#define DEEPSEEK_API_URL    "https://api.deepseek.com/v1/chat/completions"
#define DEEPSEEK_API_INFO_SHOW 1
#define DEEPSEEK_MODE   "deepseek-chat"
#define DEEPSEEK_API_CA_PATH "/etc/ssl/certs/ca-certificates.crt"

#define BAIDU_API_KEY "YeIXFqVWzc1cN5aMYhNdItei"
#define BAIDU_SECRET_KEY "1A3EPDElDsaJQownFlTKHvq1ihODcrML"
#define BAIDU_APP_ID "117948056"

#define WAV_INFO_SHOW 1

#define carmera_test_show   1

#define lcd_info_show   1
#define image_lcd_show      1
#define bmp_lcd_show     1
#define jpeg_lcd_show     1
#define png_lcd_show     1

#define M_PI 3.14

 // 颜色编码日志宏
 #define DEBUG_LOG(fmt, ...) \
    printf("\033[36m[DEBUG]\033[0m " fmt "\n", ##__VA_ARGS__)
 #define ERROR_LOG(fmt, ...) \
    fprintf(stderr, "\033[31m[ERROR]\033[0m " fmt "\n", ##__VA_ARGS__)
 #define INFO_LOG(fmt, ...) \
    printf("\033[32m[INFO]\033[0m " fmt "\n", ##__VA_ARGS__)
 

#define argb8888_to_rgb565(color)   ({ \
      unsigned int temp = (color); \
      ((temp & 0xF80000UL) >> 8) | \
      ((temp & 0xFC00UL) >> 5) | \
      ((temp & 0xF8UL) >> 3); \
      })
#define rgb888_to_rgb565(color)   ({ \
         unsigned int temp = (color); \
         ((temp & 0xF80000) >> 8) | \
         ((temp & 0x00FC00) >> 5) | \
         ((temp & 0x0000F8) >> 3); \
         })
#define argb8888_to_rgb888(color)  ((color) & 0x00FFFFFF) 
#endif